export default {
	data() {
		return {
		   id : 0,
		   hids : [],
		}
	},
	methods: {
		 set_history(){
			 if(this.id > 0){
				 let index = this.hids.indexOf(this.id);
				 if (index == -1) {  
				 	  let url = this.site_url + 'api/auth/member/set_history?id='+this.id;
				 	  this.areq(url).then(res=>{
				 			
				 	  })	 
				 }
			 }
		 },
		 history_init(){
			let url = this.site_url + 'api/auth/member/get_history';
			this.areq(url).then(res=>{
				if(res.code == 1){
					this.hids = res.data;
				}
				setTimeout(()=>{
					this.set_history();
				},600);
				
			})
		 },

	}

}
